package com.hsteach.dao.mapper.equipment;

import com.hsteach.dao.domain.equipment.EquipmentRepairConfig;
import com.hsteach.web.controller.equipment.dto.EquipmentPublicDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备报修配置信息 mapper
 */
public interface EquipmentRepairConfigMapper {
    List<EquipmentRepairConfig> queryListByStatus(EquipmentPublicDto dto);

    List<EquipmentRepairConfig> queryListByType(EquipmentPublicDto dto);

    int insert(EquipmentRepairConfig equipmentRepairConfig);

    int batchInsert(List<EquipmentRepairConfig> list);

    int update(EquipmentRepairConfig equipmentRepairConfig);

    int deleteByType(@Param("type") String type, @Param("orgCode") String orgCode);

    List<String> queryListByRepairType(String repairType);

    List<EquipmentRepairConfig> queryList();


    void batchUpdate(@Param("collect") List<EquipmentRepairConfig> collect);

}
